package com.ruoyi.hos.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 病床对象 bed
 *
 * @author bed
 * @date 2024-03-11
 */
public class Bed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 病床名称 */
    @Excel(name = "病床名称")
    private String name;

    /** 房间ID */
    @Excel(name = "房间ID")
    private Long roomId;

    private String roomName;

    private Room room;

    /** 楼的ID */
    @Excel(name = "楼的ID")
    private Long floorId;

    private String floorName;

    private Floor floor;


    /** 空闲标志（0代表不空闲 1代表空闲） */
    @Excel(name = "空闲标志", readConverterExp = "0=代表不空闲,1=代表空闲")
    private String available;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setRoomId(Long roomId)
    {
        this.roomId = roomId;
    }

    public Long getRoomId()
    {
        return roomId;
    }
    public void setFloorId(Long floorId)
    {
        this.floorId = floorId;
    }

    public Long getFloorId()
    {
        return floorId;
    }
    public void setAvailable(String available)
    {
        this.available = available;
    }

    public String getAvailable()
    {
        return available;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public Floor getFloor() {
        return floor;
    }

    public void setFloor(Floor floor) {
        this.floor = floor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("roomId", getRoomId())
            .append("floorId", getFloorId())
            .append("available", getAvailable())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
